package com.hundred.permission.dao.dataobject;

import java.util.Date;

import org.apache.commons.lang.StringEscapeUtils;

public class UserDO {
	
	/**
	 * 用户id
	 */
	private Long userId;
	
	/**
	 * 用户名
	 */
	private String userName;
	
	/**
	 * 真名
	 */
	private String realName;
	
	/**
	 * 密码
	 */
	private String password;
	
	/**
	 * 移动电话
	 */
	private String mobilePhone;
	
	/**
	 * 固定电话
	 */
	private String telephone ;
	
	/**
	 * E-mail
	 */
	private String eMail;
	
	/**
	 * 部门
	 */
	private String department;
	
	/**
	 * 部门id
	 */
	private long departmentId;
	
	/**
	 * 所属组
	 */
	private String groupName;
	
	/**
	 * 所属组id
	 */
	private long groupId;
	
	/**
	 * 角色id列表
	 */
	private String roleIdList;
	
	/**
	 * 角色名列表
	 */
	private String roleNameList;
	
	/**
	 * 备注
	 */
	private String note;
	
	/**
	 * 状态:0正常1不可用
	 */
	private int status;
	
	private Date gmtCreate;
	
	private Date gmtModified;
	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}
	
	public String getUserNameForJs() {
		return StringEscapeUtils.escapeJavaScript(userName);
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}
	
	public String getRealNameForJs() {
		return StringEscapeUtils.escapeJavaScript(realName);
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}
	
	public String getMobilePhoneForJs() {
		return StringEscapeUtils.escapeJavaScript(mobilePhone);
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getTelephone() {
		return telephone;
	}
	
	public String getTelephoneForJs() {
		return StringEscapeUtils.escapeJavaScript(telephone);
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String geteMail() {
		return eMail;
	}

	public void seteMail(String eMail) {
		this.eMail = eMail;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(long departmentId) {
		this.departmentId = departmentId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public long getGroupId() {
		return groupId;
	}

	public void setGroupId(long groupId) {
		this.groupId = groupId;
	}

	public String getRoleIdList() {
		return roleIdList;
	}

	public void setRoleIdList(String roleIdList) {
		this.roleIdList = roleIdList;
	}

	public String getRoleNameList() {
		return roleNameList;
	}

	public void setRoleNameList(String roleNameList) {
		this.roleNameList = roleNameList;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
	
}
